<div class="right-panel">
    <h3><?php echo __('STAFF_LISTING');?></h3> 
    <div class="content-outer">
        <div class="top-btns">
            <?php echo $this->Form->create("",array("method"=>"POST","id"=>"searchStaff"));?>
            <table width="100%" cellpadding="2" cellspacing="2" border="0">
                <tr>
		<td width="12%" align="right"><b><?php echo __('STAFF_SEARCH');?>:<b></td>
		<td  align="left">
			<?php
                        echo $this->Form->input('User.search_criteria', array('maxlength'=>'100','class'=>'text-input normal-wdh required','label'=>false,'div'=>false)); ?>
		</td>
               
	    	<td align="left" width="45%">
                    <div class="actionbtns">
			<?php
			echo $this->Js->submit(__('SEARCH',true), array('update' => '#divUpdate', "class"=>"button",'label'=>false, 'div' => false, 'before' => $this->Js->get('#divUpdate')->effect('fadeOut'), 'success' => $this->Js->get('#divUpdate')->effect('fadeIn')));
			 ?>
			<div class="buttonEnding"></div>
                </div>
	    	</td>
                <td align="left" width="20%">
                    <div class="actionbtns">
			<?php
			if(!$roleId){//No checks for superadmin
			      echo $this->Html->link( __('ADD_STAFF',true), array('controller'=>'users', 'action'=>'createstaff'), array("class"=>"button",'label'=>false));
			}else{
			      if($showUserAddURL){
				  echo $this->Html->link( __('ADD_STAFF',true), array('controller'=>'users', 'action'=>'createstaff'), array("class"=>"button",'label'=>false));
			      }
			}
			
			 ?>
                         <div class="buttonEnding"></div>
                    </div>
                </td>
                </tr>
            </table>
            <?php echo $this->Form->end();?>
        </div>
        <!-- Div update starts here -->
        <div id="divUpdate">
            <?php echo $this->element('users/viewstaff');?>
            <div style="color:red">* <?php echo __("DELETED_STAFF_MEMBER",true)?></div>    
        </div>
        <!-- Div update ends here -->      
    </div>
    <!--content-outer End-->
</div>